package com.piccolo.wrapper.client.component.Overlay;

import com.piccolo.wrapper.client.component.PBounds;
import com.piccolo.wrapper.client.component.PPoint;
import com.piccolo.wrapper.client.component.PTransform;
import com.piccolo.wrapper.client.component.JSNI.PTransformJSNI;

public class PTransformOverlay extends Overlay 
{
	private static PTransformJSNI impl = new PTransformJSNI(); 
	protected PTransformOverlay(){}
	public static PTransformOverlay create() { return impl.create(); }
	public final void scale(double d) { impl.scale(this, d); }
	public final void translate(double x, double y) { impl.translate(this, x, y); }
	public final PTransform getInverse() { return new PTransform(impl.getInverse(this)); }
	public final void rotate(double theta) { impl.rotate(this, theta); }
	public final PBounds transform(PBounds target) { return new PBounds(impl.transform(this, target.getOverlay())); }
	public final PPoint transform(PPoint target) { return new PPoint(impl.transform(this, target.getOverlay())); }
	public final PTransform transform(PTransform target) { return new PTransform(impl.transform(this, target.getOverlay())); }
	public final double getScale() { return impl.getScale(this); }
}
